local colorscheme = "kanagawa"

local default_colors = require("kanagawa.colors").setup()
local default_config = vim.tbl_extend("force", require("kanagawa").config, {})
local c = require('kanagawa.color')

-- this will affect all the hl-groups where the redefined colors are used
local my_colors = {}

local overrides = {
	-- override existing hl-groups, the new keywords are merged with existing ones
	WinSeparator = {
		fg = tostring(c(default_colors.oniViolet):lighten(0.6)),
		bg = default_config.dimInactive and default_colors.bg_dim or "NONE",
	},
}

require("kanagawa").setup({ overrides = overrides })

local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
	vim.notify("colorscheme " .. colorscheme .. " not found!")
	return
end
